# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=libnpupnp
pkgver=4.0.10
pkgrel=0
pkgdesc="UPnP library based on libupnp, but extensively rewritten"
url="https://www.lesbonscomptes.com/upmpdcli/libnpupnp.html"
arch="all"
license="BSD-3-Clause"
makedepends="expat-dev curl-dev libmicrohttpd-dev"
subpackages="$pkgname-dev"
source="https://www.lesbonscomptes.com/upmpdcli/downloads/libnpupnp-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="d5259a1841d5afbca9781532211f4bde3a3987759adfa3fb071d0c59fe10c7d38fccab9aea36636085fbe53622c80ee058ec50612aacd36cae8178e946648021  libnpupnp-4.0.10.tar.gz"
